import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';

// 全局注册组件
import CityCard from './components/CityCard.vue';
import Navbar from './components/Navbar.vue';
import Footer from './components/Footer.vue';
import HeroSection from './components/HeroSection.vue';
import AttractionCard from './components/AttractionCard.vue';
import TestimonialCard from './components/TestimonialCard.vue';

const app = createApp(App);

// 注册全局组件
app.component('CityCard', CityCard);
app.component('Navbar', Navbar);
app.component('Footer', Footer);
app.component('HeroSection', HeroSection);
app.component('AttractionCard', AttractionCard);
app.component('TestimonialCard', TestimonialCard);

// 使用插件
app.use(router);
app.use(store);

app.mount('#app');
